using SG;
using UnityEngine;
using UnityEngine.Tilemaps;

public class GridMap : MonoBehaviour
{

    [SerializeField]
    Tilemap m_Map;
    [SerializeField]
    TileBase m_Block;
    [SerializeField]
    int m_X;
    [SerializeField]
    int m_Y;
    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        var zero = new Vector2(-m_X / 2, -m_Y / 2);
        for (int i = 0; i < m_X; i++)
            for (int j = 0; j < m_Y; j++)
            {
                m_Map.SetTile( new Vector3Int( i,j,0 ), m_Block);
            }
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
